<include file="substation/public@header" />
<style>
	.trade_item_list{
		display: -webkit-flex; /* Safari */
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.trade_item_list .trade_item{
		flex: 1;
	}
	.trade_item_v{
		font-size: 16px;
		font-weight: bold;
	}
	.js_tips{
		margin-left: 10px;
	}
</style>
</head>
<body>
<div class="layui-fluid">
	<div class="layui-row">
		<div class="layui-page-header">
            <div class="layui-card">
                <div class="layui-page-header-content">
                    <div class="layui-card-body">
                        <div class="layui-ui-page-header-title" >
                            统计报表<!--<span class="layui-badge-rim page-content">系统订单</span>-->
                        </div>
                    </div>
                </div>
            </div>
        </div>

		<div class="layui-page-content">
			<div class="layui-card">
				<div class="layui-card-body">
					<form class="layui-form" method="post" action="{:url('statistical/index')}">
						<div class="layui-form-item">
							<div class="layui-inline">
								<div class="layui-input-inline">
									<select class="layui-input" name="type">
										<option value="">全部类型</option>
										<option value="2" selected>全职</option>
									</select>
								</div>
							</div>


							<!--<div class="layui-inline">
								<div class="layui-input-inline">
									<input type="text" class="layui-input" name="uid" value="{:input('request.uid')}" placeholder="请输入用户ID">
								</div>
							</div>-->
		
							<div class="layui-inline">
								<div class="layui-input-inline">
									<input type="text" class="layui-input" name="keyword" value="{:input('request.keyword')}" placeholder="请输入关键字">
								</div>
							</div>
		
							<div class="layui-inline">
								<div class="layui-input-inline">
									<input type="submit" class="layui-btn btn-primary" value="搜索" />
									<a class="layui-btn layui-btn-danger btn-danger" href="{:url('statistical/index')}">清空</a>
								</div>
							</div>
						</div>
						
					</form>
				</div>
				
			</div>
		</div>

	
		<div class="layui-page-content">
			<div class="layui-card">
				<div class="layui-card-body">
					<table class="layui-table" lay-even lay-size="lg">
						<thead>
						<tr>
							<th>ID</th>
							<th>骑手</th>
							<th>所属城市</th>
							<th>类型</th>
							<th>账户余额</th>
							<th>累计收益</th>
							<th>完成订单数</th>
							<th>{:lang('ACTIONS')}</th>
						</tr>
						</thead>
						<tbody>
						<foreach name="lists" item="vo">
							<tr>
								<td>{$vo.id}</td>
								<td>{$vo['user_nickname'] ? $vo['user_nickname'] : '暂无'}</td>
								<td>{$vo.cityname}</td>
								<td>{$type[$vo['type']]}</td>
								<td>{$vo.balance}</td>
								<td>{$vo.balancetotal}</td>
								<td>{$vo.orders}</td>
								<td>
									<a class="layui-bo layui-bo-small layui-bo-succes" href="{:url('statistical/index2',['uid'=>$vo['id']])}">查看明细</a>
								</td>
							</tr>
						</foreach>
						</tbody>
					</table>
					<div class="pagination">{$page}</div>
				</div>
			</div>
		</div>
	</div>


</div>
<include file="substation/public@script"/>
<script>
	(function (){
		$('.js_tips').mouseover(function (){
			let _that=$(this);
			let tip=_that.data('tip');
			layer.tips(tip, _that);
		})
	})()
</script>
</body>
</html>